package ucenter

// 查询表单
type QueryDptForm struct {
	Name string `json:"name"`
}

// 添加表单
type AddDptForm struct {
	Name     string `json:"name" binding:"required"`
	ParentId int    `json:"parent_id" binding:"required"`
}

// 更新表单
type UpdateDptForm struct {
	ID       int    `json:"id" binding:"required"`
	Name     string `json:"name" binding:"required"`
	ParentId int    `json:"parent_id" binding:"required"`
}

// 部门树
type DptTree struct {
	ID       int       `json:"id"`
	ParentId int       `json:"parent_id"`
	Name     string    `json:"name"`
	Children []DptTree `json:"children"`
}
